﻿using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using System.Diagnostics;

namespace Auction_Boxing_2
{
    public abstract class BoxingItem
    {
        public Animation ItemAnimation;


        public float health, stamina, movement, attack, defense, cooldown;

        public string name;

        public Vector2 Position;

        protected Item item;

        public Item AuctionItem
        {
            get { return item; }
            set { item = value; }
        }

        protected BoxingPlayer Player;

        protected AnimationPlayer ItemAnimPlayer;

        protected DirectionType Direction;

        public abstract HitBox ItemHitbox { get; }

        public abstract bool isAttacking { get; }

        public abstract void Draw(GameTime gameTime, SpriteBatch spriteBatch);
        public abstract void LoadContent(ContentManager Content, Item item);

        public abstract void SetPosition(float x, float y);
        public abstract void HandleDirection(SpriteEffects effect);
        public abstract void HandleMovement();
        public abstract void Ability();
        public abstract void HandleState();
        public abstract void Update();
        public abstract void HandleCollosion(List<BoxingPlayer> Players);

        public void TranslatePlayer(int x, int y)
        {
            Player.Position = new Vector3(x, y, Tools.JUMP_HEIGHT);
        }

        public void TranslateItem(int x, int y)
        {
            this.Position = new Vector2(x, y);
        }
    }

    public abstract class Melee : BoxingItem
    {


        public HitBox MHitBox;

        protected SpriteEffects DirEffect;
    }




}


